#include <objc/runtime.h>
Class LSApplicationWorkspace_class = objc_getClass("LSApplicationWorkspace");
NSObject* workspace = [LSApplicationWorkspace_class performSelector:@selector(defaultWorkspace)];
NSLog(@"apps: %@", [workspace performSelector:@selector(allApplications)]);

可以用于非越狱iOS系统。也许可以靠混淆拼接字符串绕过审核,值得一试。


洪亮
697 声望64 粉丝